//
//  Description.m
//  blackjack
//
//  Created by kyocooro on 4/9/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "Description.h"


@implementation Description
@synthesize delegate;
- (void)viewDidLoad {
    [super viewDidLoad];
}

- (IBAction)backBtnTouched {
	[delegate dismissModalViewControllerAnimated:YES];
}

- (void)setText:(NSString *)text {
	[descLabel setText:text];
}

- (void)showDescriptionFor:(NSString *)sysName {
	[systemNameLb setText:sysName];
	NSString *text;
	if([sysName isEqualToString:KO_SYSTEM_NAME]) {
		text = @"The Knock-Out System was developed under the philosophy espoused by Albert Einstein: \"Everything should be as simple as possible, but not more so.\"\n\rThe K-O is a single-level, single-parameter count,designed to be highly effective using a bare minimum of strategy changes. Most importantly,K-O is unbalanced nature completely eliminates the necessity to convert to a true count.";
	}
	else if([sysName isEqualToString:HILO_SYSTEM_NAME]) {
		text = @"It to be the best balance between power and simplicity and it has the greatest durability for extension to more powerful strategies.";
	}
	else if([sysName isEqualToString:HIOPTI_SYSTEM_NAME]) {
		text = @"The Hi-Opt I (Hi-Opt 1) has also been called the Einstein Count. It is a version of Hi-Opt (highly optimum) counting systems, a card counting strategy that is designed for use by more advanced blackjack players. This system works similiar to the the Hi-Lo card counting system but has a few additional rules and card value changes which make the count more accurate.";
	}
	else if([sysName isEqualToString:HIOPTII_SYSTEM_NAME]) {
		text = @"The Hi-Opt II (Hi Opt 2) blackjack card counting system, the more advanced of the high optimum card counting systems, is a card counting strategy that is designed for use by much more advanced blackjack players . This system is actually far more complicated than the Hi-Opt I strategy and should only be used by seasoned professionals.The actual extra player advantage that you get from using the Hi-Opt II card counting system is very small.";
	}
	else if([sysName isEqualToString:OMEGA_SYSTEM_NAME]){
		text = @"The Omega II card counting system was made popular in Bryce Carlson's book Blackjack for Blood. It is considered an advanced counting strategy, not suitable for beginners because of its complexity, but it is accurate.";
	}
	[descLabel setText:text];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];	
}

- (void)dealloc {
    [super dealloc];
}

@end
